<!DOCTYPE html>
<html>
  
    <head>
    <meta charset="UTF-8">
    <title>-</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
  <link rel="stylesheet" href="./css/tadmin.css">
  <script type="text/javascript" src="./lib/jquery/jquery.min.js"></script>
  <script src="./lib/layui/layui.js" charset="utf-8"></script>
   <script type="text/javascript" src="./js/tadmin.js"></script>  
  </head>
  
  <body>
   
    <div class="tngou-body">
      <div class="layui-row">
      <xblock >
     <!--  
        <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
       --> 
        <button class="layui-btn layui-btn-danger" onclick="x_admin_show('添加角色','./role-add.html')"><i class="layui-icon"></i>添加</button>
       
      </xblock>
      </div>
       <table class="layui-hide" id="role-table"></table>              
		<script>
		layui.use('table', function(){
		  var table = layui.table;
		  
		  table.render({
		    elem: '#role-table'
		    ,height: 'full-180'
		    ,url:'json/sms.json'   
		    ,cols: [[
		      {type:'checkbox'}
		      ,{field:'id', width:80, title: 'ID', sort: true}
		      ,{field:'name', width:200, title: '名称'}
		      ,{field:'des', title: '描述', minWidth: 150}
		      ,{field:'wealth', width:135,  toolbar: '#barDemo'}
		    ]]
		    
		  });
		});
		</script>
		 <script type="text/html" id="barDemo">
  		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
  		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>
    </div>
    <script>
      
    </script>

  </body>

</html>